<%@ page import="wangbaguanlixitong.model.Hy" %>
<%@ page import="wangbaguanlixitong.dao.HyDao" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page isELIgnored="false" %>

<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022/3/13
  Time: 17:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    HyDao hyDao = new HyDao();
    Hy hy;
    hy=hyDao.getHyByName(request.getParameter("name"));

%>

<div style="text-align: center">
    <h3>修改会员</h3>
    <form method="post" action="${pageContext.request.contextPath}/updatehy?name=<%=hy.getName()%>">
        卡号：<input type="text" placeholder="请输入卡号" name="card" ><br>

        身份证号：<input type="text" placeholder="请输入身份证" name="idcard"><br>
        性别：<input type="text" placeholder="请输入性别" name="sex"><br>
        年龄：<input type="text" placeholder="请输入年龄" name="age"><br>
        手机号：<input type="text" placeholder="请输入手机号" name="tel"><br>
        余额：<input type="text" placeholder="请输入余额" name="yuan"><br>
        <button type="submit">修改</button>
        <br>
    </form>
<%--    <a href="addhuiyan.jsp"><button>修改</button></a>--%>
    <br>
    <h2 align="center">
        <a href="main.jsp">返回主页面</a>
    </h2>
</div>
</body>
</html>
